package cn.iune.erp.autoentry;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import cn.iune.erp.accounting.AccountVoucher;

public interface IAutoentryService {

	//自动分录
	JSONObject automaticEntry(String origin, String originName, String originNo, String billType, String billTypeName,
			int direction, int attachQuantity, //附件数量
			String currency, //币种
			String currencyLabel, //币种
			String comments,

			JSONArray entries,

			String cUsercode, String cUsername, String userId, String employeeNo, String employeeName,
			String enterpriseNo, String enterpriseName);

	//生成分录底稿（可以直接生成会计凭证）
	AccountVoucher insert(String origin, String originName, String originNo, String systemCode, String billType,
			String billTypeName, int direction, int attachQuantity, //附件数量
			int flowType, String comments, JSONArray entries,

			int formalFlag, //是否直接生成凭证

			String cUsercode, String cUsername, String userId, String employeeNo, String employeeName,
			String enterpriseNo, String enterpriseName);

}